package com.example.demo.mapper;

import com.example.demo.entity.vo.ArticleInfoVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ArticleMapper {
    //查询文章详情
    ArticleInfoVo getDetail(@Param("id")Integer id);

    List<ArticleInfoVo> getListByUid(@Param("uid")Integer uid);
    List<ArticleInfoVo> getListByIdOeTitle(@Param("id")Integer id,
                                           @Param("title")String title);
    //根据文章id集合批量删除文章
    int delByIdList(List<Integer> idList);
}
